package cn.oop.inherit;

import java.util.Scanner;

public class TestTime {
    public static void main(String[] args) {
        Scanner num = new Scanner(System.in);
        System.out.println("请输入时间");
        int BJT = num.nextInt();
        if (BJT >= 0 && BJT < 800) {
            System.out.printf("%02d", BJT + 2400 - 800);
        } else if (BJT >= 800) {
            System.out.printf("%02d", BJT - 800);
        } else if (BJT > 2359) {
            System.out.println("输入时间错误");
        }
    }
}

